package com.cecil.generate;

import com.cecil.generate.factory.MySQLFactory;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@SpringBootApplication
@MapperScan(basePackages = {"com.cecil.generate.mapper"})
public class GenerateApplication {

    public static void main(String[] args) {
        SpringApplication.run(GenerateApplication.class, args)
                .getBean(MySQLFactory.class)
                .generate();
        System.exit(0);
    }

}
